/* Custom CSS for Modern Website Header */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

/* Navigation Bar Styles */
.navbar {
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #007bff !important;
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #007bff !important;
    background-color: #e3f2fd;
}

/* Mobile Hamburger Button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background-color: #f8f9fa;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Categories Section */
.categories-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

/* Categories Button */
.categories-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #333;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.categories-btn:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.categories-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Categories Dropdown Menu */
.categories-menu {
    min-width: 300px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.categories-menu .dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.categories-menu .dropdown-item:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateX(5px);
}

.categories-menu .dropdown-item:last-child {
    border-bottom: none;
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 250px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
}

.dropdown-submenu:hover .submenu {
    display: block;
}

.submenu .dropdown-item {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f3f4;
}

.submenu .dropdown-item:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    transform: translateX(3px);
}

/* Chevron Icons */
.dropdown-toggle .fas.fa-chevron-right {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-item:hover .fas.fa-chevron-right {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    /* Mobile Navigation */
    .navbar-collapse {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        text-align: center;
    }

    /* Categories Section Mobile */
    .categories-section {
        padding: 0.75rem 0;
    }

    .categories-btn {
        width: 100%;
        text-align: left;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }

    .categories-menu {
        width: 100%;
        min-width: auto;
        position: static !important;
        transform: none !important;
        margin-top: 0.5rem;
    }

    /* Mobile Submenu */
    .submenu {
        position: static !important;
        width: 100%;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        border-radius: 6px;
        margin-top: 0.5rem;
        background: #f8f9fa;
    }

    .dropdown-submenu:hover .submenu {
        display: none; /* Disable hover on mobile */
    }

    .dropdown-submenu.active .submenu {
        display: block;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .categories-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
    }

    .categories-menu .dropdown-item {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}



